package com.scs.application.modules.design.constDir;

/**
 * @description:
 */
public enum QueryRule {

    GT(">", "gt", "大于"),
    GE(">=", "ge", "大于等于"),
    LT("<", "lt", "小于"),
    LE("<=", "le", "小于等于"),
    EQ("=", "eq", "等于"),
    NE("!=", "ne", "不等于"),
    IN("IN", "in", "包含"),
    OR("OR", "or", "或者"),
    NOT_IN("NOT_IN", "not_in", "不包含"),
    IS_NULL("IS_NULL", "is_null", "为空"),
    IS_NOT_NULL("IS_NOT_NULL", "is_not_null", "不为空"),
    LIKE("LIKE", "like", "全模糊"),
    LIKE_LEFT("LIKE_LEFT", "like_left", "左模糊"),
    LIKE_RIGHT("LIKE_RIGHT", "like_right", "右模糊"),
    BETWEEN("BETWEEN", "between", "区间"),
    ORLIKE("OR_LIKE", "or_like", "或者"),
    NOT_IN_SQL("NOT_IN_SQL", "not_in_sql", "notin子查询"),
    NOT_LIKE_ALL("NOT_LIKE_ALL", "not_like_all", "not_like_all 全模糊"),
    SQL_RULES("USE_SQL_RULES", "ext", "自定义SQL片段"),
    AND_OR_IN("AND_OR_IN", "and_or_in", "并且或者");

    private String value;

    private String condition;

    private String msg;

    QueryRule(String value, String condition, String msg) {
        this.value = value;
        this.condition = condition;
        this.msg = msg;
    }

    public String getValue() {
        return value;
    }

    public String getCondition() {
        return condition;
    }

    public String getMsg() {
        return msg;
    }
}
